package com.yjck.fm.login.service;

import com.yjck.fm.login.bean.User;
import com.yjck.fm.login.dao.LoginDAO;

public class LoginService {
	private LoginDAO loginDAO;

	public void setLoginDAO(LoginDAO loginDAO) {
		this.loginDAO = loginDAO;
	}

	public boolean validate(String email, String passwd) {
		return loginDAO.validate(email,passwd);
	}

	public User getUser(String email) {
		return loginDAO.getUser(email);
		
	}

}
